// project created on 2/5/2007 at 7:18 PM
using System;
using System.Xml;
using Mehat.San.DiscManager;

namespace Mehat.San.ImageMaker
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			if (args.Length != 3)
			{
				Console.WriteLine("Usage: ImageMaker.exe <ImageFile> <MountPoint> <Source Path>");
				return;
			}
			
			if (!System.IO.File.Exists(args[0]))
				throw new Exception("Imagefile not found");
				
			DiscImage   di = new DiscImage(args[0], args[1]);
			di.Open();
			try
			{
				di.AddFiles(args[2]);
			}
			catch (Exception ex)
			{
				throw;
			}
			finally
			{
				di.Close();
				di.Dispose();
			}
		}
	}  // END CLASS
}  // END NAMESPACE